package io.renren.modules.avanotes.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 分类类目表
 *
 * @author zzr
 * @email 529742454@qq.com
 * @date 2022-02-19 22:04:15
 */
@Data
@TableName("classify_subject")
public class ClassifySubjectEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    public static String CN_ID = "id";
    public static String CN_NAME = "name";
    public static String CN_TYPE = "type";
    public static String CN_PARENT_ID = "parent_id";

    /**
     * 分类id
     */
//    @TableId
    private String id;
    /**
     * 分类名称
     */
    private String name;
    /**
     * 分类类型（1-Java互联网）
     */
    private Integer type;
    /**
     * 父分类id
     */
    private String parentId;

    public ClassifySubjectEntity() {
    }

    public ClassifySubjectEntity(String id, String name, Integer type, String parentId) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.parentId = parentId;
    }
}
